<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<script type="text/javascript" src="<%=path %>/js/jquery-1.7.2.min.js"></script>
    <title>文件上传示例</title>
    <script type="text/javascript">
		var totalEditor;
		var totalPath="<%=path %>";
		$(function(){
				var editor = new baidu.editor.ui.Editor({
		            allHtmlEnabled:true
		    	});
				editor.render('proEditor');
				totalEditor=editor;
			});
		function getEditorValue(){
			alert(totalEditor.getContent());
		}
		</script>
	<script type="text/javascript" src="<%=path %>/js/ueditor/editor_all_min.js"></script>
	<script type="text/javascript" src="<%=path %>/js/ueditor/editor_config.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=path %>/js/ueditor/themes/default/ueditor.css">
  </head>
  
  <body>
    <textarea rows="5" cols="100" id="proEditor"></textarea>
    <input type="button" onclick="getEditorValue()"  value="获取编辑器中的值"/>
  </body>
</html>
